package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.TeamDrawingHistory;
import com.zcxy360.sandtable.domain.TeamDrawingHistoryExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TeamDrawingHistoryMapper {
	
//	
	TeamDrawingHistory selectLastHistory(@Param("teamId") Integer teamId,@Param("drawingTypeId")  Integer drawingTypeId);
	List<TeamDrawingHistory> listLastHistory(@Param("teamId") Integer teamId,@Param("drawingTypeId")  Integer drawingTypeId);
//	
	
    long countByExample(TeamDrawingHistoryExample example);

    int deleteByExample(TeamDrawingHistoryExample example);

    int insert(TeamDrawingHistory record);

    int insertSelective(TeamDrawingHistory record);

    List<TeamDrawingHistory> selectByExample(TeamDrawingHistoryExample example);

    int updateByExampleSelective(@Param("record") TeamDrawingHistory record, @Param("example") TeamDrawingHistoryExample example);

    int updateByExample(@Param("record") TeamDrawingHistory record, @Param("example") TeamDrawingHistoryExample example);

}